package com.hy.impl;

//import com.hy.Rent;
import org.springframework.stereotype.Service;

/**
 * date:2020/12/18
 * description:
 * Author:gxh
 */
@Service
public class RentImpl{

//    @Override
    public void rentHouse(int price,int num)  {
        System.out.println("出租房屋啦====");
//        return 1000;
    }

//    @Override
    public int rentCar(int price,int num) {
        System.out.println("出租豪车啦====");
//        int i = 1/0;
        return 100;
    }

//    @Override
    public int rentPerson(int price,int num) {
        System.out.println("出租对象啦====");
        return price/num;
    }
}
